package com.atguigu.gulimall.mudan.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;

import com.atguigu.gulimall.mudan.dao.SpeciesDao;
import com.atguigu.gulimall.mudan.entity.SpeciesEntity;
import com.atguigu.gulimall.mudan.service.SpeciesService;


@Service("speciesService")
public class SpeciesServiceImpl extends ServiceImpl<SpeciesDao, SpeciesEntity> implements SpeciesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SpeciesEntity> page = this.page(
                new Query<SpeciesEntity>().getPage(params),
                new QueryWrapper<SpeciesEntity>()
        );

        return new PageUtils(page);
    }

}